package com.kate.mall.bff.wx.controller.form;

import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * @ClassName QueryGoodsByCateIdForm
 * @Description TODO
 * @Author 新梦想.陈超
 * @Date 2:17 下午 2023/9/11
 * @Version 1.0
 **/
@Data
public class QueryGoodsByCateIdForm implements Serializable {
    /*序列号id,用于反序列化校验*/
//    private static final long serialVersionUID = 3L;

    @Max(value = 100,message = "只能获取100页以内的数据")
    @Min(value = 1,message = "页数不能小于1")
    private Integer page;
    @Max(value = 20,message = "每页条数不能超过20")
    @Min(value = 6,message = "每页条数不能少于6")
    private Integer limit;
    @Min(value = 1,message = "分类ID必须大于0")
    private Integer categoryId;

}
